#!/bin/bash

workdir="/home/rhome/wangyong/zhaolingci_io4/Go-DCL1-A/ana/structure"
GNU="/home/rhome/wangyong/software/Gnuplot4.5/bin"
Lists="/home/rhome/wangyong/zhaolingci_io4/Go-DCL1-A/ana/kinetic"

 if [ $# -lt 1 ]; then
 echo "$0 tmppdb"
else
  PDB=$1
fi
cat > TRANDis.SGE <<EOF
#$ -S /bin/bash
#$ -cwd
#$ -V
#$ -N tranDis
  $workdir/disTran.x $Lists/binding73.list $Lists/folding_csu.list $PDB distance.list
  $GNU/gnuplot $workdir/DistanceMaps.bat
EOF
  qsub TRANDis.SGE
